<a name="top"></a>
   <div id="wrap">
     <div id="header"><h1><a href="http://planetrubyonrails.net">PLANET RUBY ON RAILS</a> <a href="http://feeds.feedburner.com/PlanetRails"><img src="/images/feed-icon-28x28.png" border="0"></a></h1>
     </div>
     <div id="top_wrap">
       <div class="left_top" id="left_top"><div class="left_top_content">
           <ul> <% @link_array = []%>
             <% for feed_item in @feeds%> <% @link_array << MD5::new(feed_item.link )%>
               <li><span class="bullet_icon">»</span>&nbsp;<a title="<%= distance_of_time_in_words(Time.now, feed_item.published)%> ago at <%= feed_item.site_title %>" href="#<%= MD5::new(feed_item.link )%>"><%= feed_item.title %></a> <!-- <span class="sub grey"><%= distance_of_time_in_words(Time.now, feed_item.published)%> ago</span></li> -->
             <%end%>
           </ul>
         </div>
       </div>
       <div class="right_top">
         <div class="right_top_content">
           <a href="http://feedproxy.google.com/PlanetRails"><img src="http://feedproxy.google.com/~fc/PlanetRails?bg=BBBBBB&amp;fg=000000&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a>
         </div>
       </div>
     </div>
    
     <div class="pagination">
       <%= will_paginate @feeds, :class => "digg_pagination" %>
     </div>
     <div id="main">
	<div id="top_sub_wrap">
        <div class="left_sub_top"left sub top>
          <div id="notice">
            <% if !params[:query].blank? %>
              Results for "<%= params[:query] %>"
            <% end %>
            <% if params[:query].blank? and !params[:page].blank? %>
              Displaying page <%= params[:page] %>   
            <% end %>
          </div>
        </div>
        <div class="right_sub_top">
          <form id="search_form" name="search" action="/search" method="get">
            <label>Search</label> <input id="search" type="text" name="query" value="<%= params[:query] %>">
          </form>
        </div>
      </div>
       <% if !@feeds.blank? %>
         <% for feed_item in @feeds%>
           <div><a name="<%= MD5.new(feed_item.link )%>"></a></div>
           <div class="post">
             <div class="title"><a href="<%= h feed_item.link %>"><%= feed_item.title %></a></div>
             <div class="sub">
               Posted <%= distance_of_time_in_words(Time.now, feed_item.published)%> ago at <a href="<%= feed_item.site_link%>"><%= feed_item.site_title %></a>
             </div>
             <div class="entry">
               <p><%= fix_host(feed_item.content, feed_item.site_link) %></p>
             </div>
             <div class="entry_bottom"><a href="#top">back to top</a></div>
           </div>
         <% end %>

       <% elsif !params[:query].blank? %>
         <div class="post" style="text-align:center">
           No results found.
         </div>
       <% elsif params[:query].blank? %>
         There are no feeds added yet. <br />
         <a href="feed_urls">click here</a> to add.
       <%end%>
     </div>
     <div class="pagination">
       <%= will_paginate @feeds, :class => "digg_pagination" %>
     </div>
     <div id="footer">© The contents of this website are copyrighted by respective blog owners. this is Digital Codes</div>
   </div>
<a name="down"></a>
<script>
	var links = "<%= @link_array.join(",")%>";
	$('#left_top a').tooltip({showURL: false});

	var linksArray = new Array();
	linksArray = links.split(",");
</script>
